﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YTCMS.Domain.Entities
{
    /// <summary>
    /// 栏目
    /// </summary>
    /// 
    [Table("cmscolumn")]
    public partial class cmscolumn
    {
        [Key]
        public int Id { get; set; }
        public string Title { get; set; }
        public string ETitle { get; set; }
        public Nullable<int> State { get; set; }
        public System.DateTime CreateTime { get; set; }
        public string Icon { get; set; }
        public string Style { get; set; }
        public Nullable<int> ModuleId { get; set; }

        [ForeignKey("ModuleId")]
        public virtual module module { get; set; }

        public Nullable<int> Sort { get; set; }

        public string Code { get; set; }

        public virtual ICollection<columnproduct> columnproducts { get; set; }
        public string Remark { get; set; }
    }
}
